/**
 * 
 */
package com.wonder.common.constants;

//import io.jsonwebtoken.Claims;

/**
 * @author luzhongren
 *
 */
public class Constants
{
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * Parameter token
     */
    public static final String TOKEN_KEY = "TOKEN";
    
    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "TOKEN:LOGIN_USER:";

    public static final String LOGIN_USER_PASSWORD_ATTEMPTS = "TOKEN:LOGIN_USER_PASSWORD_ATTEMPTS:";
        
    /**
     * 后台用户 redis key
     */
    public static final String ADMIN_TOKEN_KEY = "TOKEN:ADMIN:";
    
    
    public static final long TOKEN_EXPRESS_MINUTES = (60 * 24); //3小时
    
    //头部 token令牌key
    public static final String HEADER_AUTHORIZATION_KEY = "Authorization";
    
    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 验证码有效期（分钟）
     */
    public static final Integer CAPTCHA_EXPIRATION = 2;

    /**
     * 令牌
     */
    public static final String TOKEN = "token";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "login_user_key";

    /**
     * 用户ID
     */
    public static final String JWT_USERID = "userid";

    /**
     * 用户名称
     */
  //  public static final String JWT_USERNAME = Claims.SUBJECT;

    /**
     * 用户头像
     */
    public static final String JWT_AVATAR = "avatar";

    /**
     * 创建时间
     */
    public static final String JWT_CREATED = "created";

    /**
     * 用户权限
     */
    public static final String JWT_AUTHORITIES = "authorities";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";


    /**
     * 参数管理 cache key
     */
    public static final String GAMEROOM_KEY = "game_room:";

    
    /**
     * 机器人ID管理 cache key
     */
    public static final String SYS_ROBOTS_KEY = "sys_robots:";
    
    
    /**
     * 红包ID管理 cache key
     */
    public static final String RED_PACKET = "red_packet:";


    /**
     * 红包码管理 cache key
     */
    public static final String CLAIM_CODE = "claim_code:";


    /**
     * 红包ID管理 cache key
     */
    public static final String ROOM_MESSAGE = "room_message:";

    /**
     * gameroom cache key
     */
    public static final String GAME_ROOM = "game_room:";
    
    
    /**
     * 红包ID锁管理 cache key
     */
    public static final String RED_PACKET_LOCK = "red_packet_Lock:";
    
    
    /**
     * 参数管理 cache key
     */
    public static final String SYS_PARAMETER_KEY = "parameters:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * currency cache key
     */
    public static final String CURRENCY = "currency:";

    /**
     * site cache key
     */
    public static final String SITE = "site:";
    
    
    /**
     * 下注中的记录
     */
    public static final String LOTTERY_BIDDING = "bidding:lottery_result_id:";
    
    /**
     * 结算中的记录
     */
    public static final String LOTTERY_CLOSING = "closing:lottery_result_id:";
    
	/**
	 * 获取公钥的key
	 */
    public static final String PUBLIC_KEY = "RSAPublicKey";

	/**
	 * 获取私钥的key
	 */
    public static final String PRIVATE_KEY = "RSAPrivateKey";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

	public static final long DEFAULT_PAGE = 1;

	public static final long DEFAULT_LIMIT = 20;
	
	public static final String DEFAULT_AJAX_SUCCESS = "操作成功";

	public static final String DEFAULT_AJAX_FAILOR = "操作失败";
	
    public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
    public static final String DATE_FORMAT_UTC = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'";
    public static final String DATE_FORMAT_DATE = "yyyy-MM-dd";
    public static final String DATE_FORMAT_YEAR = "yyyy";
    public static final String DATE_FORMAT_MONTH_DATE = "MM-dd";
    public static final String DATE_FORMAT_MONTH = "yyyy-MM";
    public static final String DATE_TIME_FORMAT_NUM = "yyyyMMddHHmmss";
    public static final String DATE_FORMAT_NUM = "yyyyMMdd";
    public static final String DATE_FORMAT_START = "yyyy-MM-dd 00:00:00";
    public static final String DATE_FORMAT_END = "yyyy-MM-dd 23:59:59";
    public static final String DATE_FORMAT_MONTH_START = "yyyy-MM-01 00:00:00";
    public static final String DATE_FORMAT_YEAR_START = "yyyy-01-01 00:00:00";
    public static final String DATE_FORMAT_YEAR_END = "yyyy-12-31 23:59:59";
    public static final String DATE_FORMAT_HHMMSS = "HH:mm:ss";
    
    //会员搜索日期类型
    public static final String SEARCH_DATE_DAY = "today"; //今天
    public static final String SEARCH_DATE_YESTERDAY = "yesterday"; //昨天
    public static final String SEARCH_DATE_LATELY_7 = "lately7"; //最近7天
    public static final String SEARCH_DATE_LATELY_30 = "lately30"; //最近30天
    public static final String SEARCH_DATE_WEEK = "week"; //本周
    public static final String SEARCH_DATE_PRE_WEEK = "preWeek"; //上周
    public static final String SEARCH_DATE_MONTH = "month"; //本月
    public static final String SEARCH_DATE_PRE_MONTH = "preMonth"; //上月
    public static final String SEARCH_DATE_YEAR = "year"; //年
    public static final String SEARCH_DATE_PRE_YEAR = "preYear"; //上一年


    public static final String SEPARATOR = ":";
    public static final String AWS_MULTIPART = "WONDER:AWS_MULTIPART";
    

}
